package com.yayako.modules.user.mapper;

import com.yayako.modules.user.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {

  int deleteByPrimaryKey(String id);

  int insert(User record);

  int bulkInsert(@Param("users") List<Object> users);

  int insertSelective(User record);

  User selectByPrimaryKey(String id);

  User selectByUserName(String username);

  int updateByPrimaryKeySelective(User record);

  int updateByPrimaryKey(User record);

  List<User> getData();
}
